BagModel = BagModel or BaseClass(EventDispatcher)
local BagModel = BagModel
local table_insert = table.insert

BagModel.EVENT_NAME =
{
	OPEN_BAG_VIEW = "OPEN_BAG_VIEW",
	CLOSE_BAG_VIEW = "CLOSE_BAG_VIEW",
	OPEN_BAG_SMALL_VIEW = "OPEN_BAG_SMALL_VIEW",
}

function BagModel:__init()
    -- BagModel.Instance = self
    self.bag_datas_list = {}
    self.bag_goods_datas_list = {}
end

function BagModel:GetInstance()
    if BagModel.Instance == nil then
        BagModel.Instance = BagModel.New()
    end
    return BagModel.Instance
end


function BagModel:GetFakeGoodsDatas()
	if IsEmpty(self.bag_goods_datas_list) then
		self.bag_goods_datas_list =
		{
			"12120000",
			"12120001",
			"12120002",
			"12120003",
			"12120004",
			"12120005",
			"12120006",
			"12120007",
			"12120008",
			"12120009",
			"12120010",
			"12120011",
		}
	end
	return self.bag_goods_datas_list
end

function BagModel:GetFakeBagDatas()
	if IsEmpty(self.bag_datas_list) then
		for i = 1, 20 do
			local data =
			{
				goods_id = i,
				type_id = i,
				goods_icon = "12120000",
			}
			table_insert(self.bag_datas_list, data)
		end
	end
	return self.bag_datas_list
end